#include<iostream>
#include<algorithm>
using namespace std;

int main()
{
    int a, b, c;
    scanf("%d%d%d", &a, &b, &c);
    int l[5];
    l[0] = a, l[1] = b, l[2] = c;
    sort(l, l + 3);
    for (int i = 2; i <= l[0]; i++)
    {
        while (l[2] % i == 0 && l[0] % i == 0)
        {
            l[2] /= i;
            l[0] /= i;
        }
    }
    printf("%d/%d\n", l[0], l[2]);
    return 0;
}